#ifndef _DevicesPower_H_
#define _DevicesPower_H_




#define POWER_SOC           0x01
#define POWER_MCU           0x02
#define POWER_COM           0x10

#define POWER_ALL           0xFFFF




#define POWER_COM_GPIO_Port  GPIOB
#define POWER_COM_Pin        GPIO_PIN_14

#define POWER_MCU_GPIO_Port  GPIOC
#define POWER_MCU_Pin        GPIO_PIN_2


#define POWER_COM_ENABLE() gpio_bit_set(POWER_COM_GPIO_Port, POWER_COM_Pin)
#define POWER_COM_DISABLE() gpio_bit_reset(POWER_COM_GPIO_Port, POWER_COM_Pin)

#define POWER_MCU_ENABLE() gpio_bit_set(POWER_MCU_GPIO_Port, POWER_MCU_Pin)
#define POWER_MCU_DISABLE() gpio_bit_reset(POWER_MCU_GPIO_Port, POWER_MCU_Pin)



void vPowerInit(void);
void vPowerOpen(uint16_t usNumber);
void vPowerClose(uint16_t usNumber);

#endif
